﻿/**
 * @author sminutoli
 */
import com.dinmax.flash.draw.control.scroll.*
import com.dinmax.flash.draw.control.button.*
import com.dinmax.flash.draw.common.Point

class ScrollViewLinkage
implements ScrollView {
	
	private var linkageID:String;
	private var scroll:ScrollBridge;
	
	public function ScrollViewLinkage(linkageID:String) {
		this.linkageID = linkageID;
	};
	
	public function border(container:MovieClip):MovieClip{
		scroll = ScrollBridge ( container.attachMovie(this.linkageID, "mc"+this.linkageID, container.getNextHighestDepth()));
		return container;
	};
	
	function buttonUp(container:MovieClip):PressButton {
		var bt:PressButton = new PressButton(container, "boton");
		bt.setClip(MovieClip(scroll.buttonUp()));
		return bt;
	};
	function buttonDown(container:MovieClip):PressButton {
		return undefined;
	};
	function buttonMiddle(container:MovieClip):PressButton{
		return undefined;
	};
	
	public function getSize():Point {
		return undefined;
	};
	
	public function reset():Void {
		
	};
	
}